//
//  LocalDataManager.h
//  SZBank
//
//  Created by LuoYao on 16/7/8.
//  Copyright © 2016年 LuoYao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^alertBlock)(id codes);/**< 定义一个弹窗block */
typedef NS_ENUM(NSInteger, alertStyle){
    sureStyle = 0,
    sureAndCancel
};/**< 弹窗枚举 第一个是只有确定 第二个是有确定有取消 */

@interface LocalDataManager : NSObject




+ (UIImage *)getImageWithSourceOfPath:(NSString *)imageName;/**< 获取图片，使用这个方式加载图片可以减少内存消耗 */
+ (UIImage *)getImageWithSourceOfPathForJPG:(NSString *)imageName;/**< 获取图片，jpg格式的 */

+ (UIImage *) getImageWithURL:(NSString *)URLStr;/**< 获取网络图片 */

+ (void)addAlertControllerWithControllerTitle:(NSString *)controllerTitle controllerMessage:(NSString *)controllerMessage actionSureTitle:(NSString *)actionSureTitle actionCancelTile:(NSString *)actionCancelTile actionSureBlock:(alertBlock )actionSureBlock  actionCancelBlock:(alertBlock )actionCancelBlock style:(alertStyle)style;


+ (void)saveMemorandumWithDictionary:(NSDictionary *)dic;/**< 存储备忘录 */
+ (NSArray *)getMemorandumWithPlist;/**< 获取备忘录 */
+ (void)removeMemorandumWithIndex:(NSInteger)index;/**< 根据下标删除对应的数据 */


+ (void)saveImageWithData:(NSData *)imageData;/**< 测试图片存储 */
+ (NSData *)getImageDataWithPlist;//测试图片获取
@end
